Popular Searches
Popular Course Categories
Popular Courses

Creating and Configuring Parameters

Creating and Configuring Parameters

Parameters and Advanced Filtering

Creating and Configuring Parameters in Tableau – Detailed Notes

Creating and configuring parameters is an important Tableau skill used to build interactive dashboards, flexible reports, and dynamic analytical visualizations. Parameters allow users to select values such as sales targets, discount rates, date ranges, measures, and Top N counts. These values can then be connected to calculated fields, filters, reference lines, and dashboard actions.

In this lesson, you will learn how to create parameters from scratch, configure their properties, define allowable values, customize parameter controls, use parameters in calculations, troubleshoot common issues, and practice with real-world examples.

Tableau Training: JustAcademy Tableau Training

Course Demo: Register for a Tableau Course Demo


1. Learning Objectives

After completing these notes, you should be able to:

  • Understand what Tableau parameters are and why they are used.
  • Create parameters from the Data pane or from suitable existing fields.
  • Configure a parameter's name, data type, current value, display format, and allowable values.
  • Work with All, List, and Range configurations.
  • Show and customize parameter controls.
  • Use parameters in calculated fields, filters, and reference lines.
  • Understand dynamic parameter values and parameter actions.
  • Test and troubleshoot parameter-driven dashboards.

2. What Is a Parameter in Tableau?

A Tableau parameter is a workbook variable that stores a single value of a specified data type. This value can replace a fixed or constant value in a calculation, filter, reference line, or another supported feature.

For example, a sales calculation might compare total sales against a fixed target of 50,000. If that target is replaced with a parameter, dashboard users can change the target without manually editing the calculation.

Example: Fixed value versus parameter

A calculation with a fixed threshold could be:

SUM([Sales]) >= 50000

This calculation always compares sales against 50,000 until someone edits the formula.

A parameter-based calculation could be:

SUM([Sales]) >= [Sales Target]

Here, [Sales Target] is a parameter. If a user changes its value from 50,000 to 75,000, the comparison updates automatically.

Important: Creating a parameter does not automatically change a visualization. You must connect the parameter to a calculation, filter, reference line, parameter action, or other supported feature.

3. Why Create and Configure Parameters?

  • Interactive analysis: Allow viewers to change selected values without editing the workbook.
  • Dynamic thresholds: Let users set targets for sales, profit, or quantity.
  • Flexible calculations: Replace hard-coded values with user-controlled inputs.
  • Measure selection: Switch between Sales, Profit, Quantity, or other measures.
  • Top N reporting: Allow users to select how many products or customers to display.
  • What-if analysis: Explore scenarios such as a proposed discount or revenue target.
  • Dynamic reference lines: Change the position of a target or benchmark line.
  • Dashboard interactions: Use parameter actions to change values by interacting with marks.

4. Understanding the Parameter Configuration Window

When you create or edit a parameter, Tableau provides configuration options. The exact appearance and available choices may vary by Tableau version, data type, and authoring environment.

Property Description Example
Name A descriptive name used to identify the parameter. Sales Target
Data Type Determines the kind of value the parameter stores. Number (Whole)
Current Value The parameter's initial or current value. 50000
Value When Workbook Opens Configures the value to use when the workbook opens, where supported. Current value or a configured dynamic value
Display Format Controls the presentation of the value in supported parameter controls. Currency or percentage formatting
Allowable Values Defines the values users can enter or select. All, List, or Range
List of Values Specifies permitted values when List is selected. Sales, Profit, Quantity
Range Settings Defines the minimum, maximum, and step size for supported range parameters. Minimum 1, maximum 20, step 1

5. How to Create a Parameter from Scratch

Follow these steps to create a parameter in Tableau Desktop or another compatible Tableau authoring environment.

Step 1: Open a Tableau Workbook

Launch Tableau and connect to a data source. For practice, you can use a sales dataset containing fields such as Sales, Profit, Category, Region, and Order Date.

Step 2: Locate the Data Pane

Open a worksheet and locate the Data pane on the left side of the interface. It contains dimensions, measures, and other available data elements.

Step 3: Open the Create Parameter Dialog

  1. Click the dropdown menu in the Data pane, or right-click an empty area of the pane.
  2. Select Create Parameter.
  3. Wait for the parameter configuration dialog to appear.

Step 4: Enter a Parameter Name

Give the parameter a name that clearly describes its purpose.

Examples:

  • Sales Target
  • Discount Rate
  • Select Measure
  • Top N Products
  • Selected Reporting Date

Step 5: Select a Data Type

Choose the type that matches the value the parameter needs to store. For example, select a numeric type for a sales target or String for a measure-selection menu.

Step 6: Set the Current Value

Enter the value you want the parameter to start with. For example, set Sales Target to 50000.

Step 7: Configure Allowable Values

Select All, List, or Range when available for the selected data type. These options determine how users can provide a value.

Step 8: Set the Display Format

Where supported, choose a format that makes the value easy to interpret. For a sales target, a currency format may be suitable. For a discount, percentage formatting may be appropriate.

Step 9: Click OK

After completing the settings, click OK. The parameter will appear in the Parameters section of the Data pane.

Step 10: Connect the Parameter to a View

Use the parameter in a calculated field, a supported filter configuration, a reference line, or another feature. Then show its control so users can change the value when appropriate.

6. Parameter Data Types

The data type determines what kind of value a parameter can store. Select a type that matches the calculation or interaction you intend to build.

Data Type Example Value Common Use
Number (Whole) 10 Top 10 products or a whole-number threshold
Number (Decimal) 0.15 Discount rates, percentages, or decimal thresholds
String Sales Measure selection, category choice, or text options
Boolean True Switching a supported logical condition on or off
Date 2026-01-01 Choosing a reporting or comparison date
Date and Time A timestamp Selecting a particular date and time where supported

Always ensure that the parameter's data type is compatible with the values and expressions that use it.

7. Configuring Allowable Values

Allowable values control the values a user can enter or select through a parameter control. The options available depend on the parameter's data type.

7.1 All Values

The All option allows a broad set of values to be entered for the selected data type. The control commonly appears as a text-entry field, depending on the parameter and Tableau version.

Example: A user can enter different sales targets, such as 20,000, 35,000, or 60,000.

Best suited for: Custom numeric thresholds and values that are not limited to a predefined list.

7.2 List of Values

The List option defines a set of permitted choices. Users select a value from that list rather than entering any arbitrary value.

Example: Create a parameter called Select Measure with these values:

  • Sales
  • Profit
  • Quantity

The parameter can then control which measure a calculated field returns.

For supported configurations, values can be entered manually or populated from a field. Dynamic list behavior can be configured so the list refreshes when the workbook opens.

7.3 Range of Values

The Range option limits a parameter to a defined numeric or date range where supported. A range configuration generally includes a minimum, maximum, and step size.

Example:

  • Minimum: 1
  • Maximum: 20
  • Step size: 1

This configuration is suitable for a Top N Products parameter because users can select the number of products to display within the configured range.

Comparison of Allowable Values

Option How It Works Example
All Allows broad user entry within the parameter's data type. Enter a custom sales target.
List Allows selection from specified values. Choose Sales or Profit.
Range Allows values within configured boundaries and step intervals. Choose a Top N value from 1 to 20.

8. Setting the Current Value and Workbook Opening Value

The current value determines which value the parameter uses at a given time. The configuration for the value when the workbook opens determines how the parameter should be initialized when the workbook is opened, where supported.

Example: Sales Target

  • Parameter name: Sales Target
  • Data type: Number (Whole)
  • Current value: 50000
  • Allowable values: Range or All, depending on the intended interaction

When the workbook is initialized with a target of 50,000, the dependent calculation compares sales against that target. If the workbook is configured to use a different opening value, its behavior at startup may differ from the last interactive selection.

Dynamic current values

Tableau supports dynamic parameter configurations that can use a field or calculation to update a parameter's current value or allowable values when the workbook opens or when the data source is refreshed, depending on the configuration.

For example, a reporting-date parameter can be configured to use an appropriate date from the data. Dynamic configuration requires the selected source and returned value to be compatible with the parameter's data type and requirements.

9. Configuring Parameter Display Formats

Display formatting makes parameter values easier to read. The available options depend on the data type and Tableau authoring environment.

Value Possible Presentation Example Use
50000 Whole number or currency format Sales target
0.15 Decimal or percentage-style display, depending on configuration Discount rate
2026-01-01 Date format Reporting date
Sales Text value Measure selector

Best practice: Make sure the displayed format does not misrepresent the underlying value. For example, if a discount formula expects 0.15 to mean 15%, use a clear label and formatting so users understand the expected input.

10. How to Show and Customize a Parameter Control

A parameter control is the user interface that allows the parameter's value to be changed. It can be displayed in a worksheet and used as part of an interactive dashboard.

Steps to show the control

  1. Locate the parameter in the Data pane.
  2. Right-click the parameter.
  3. Select Show Parameter or the equivalent option available in your version.
  4. Locate the control card in the worksheet.
  5. Use the control's menu to choose an appropriate presentation, if available.

Common control presentations

  • Dropdown list: Useful when there are several discrete options.
  • Single-value list: Displays available values for selection.
  • Slider: Useful for numeric ranges and supported date ranges.
  • Type-in field: Suitable for entering custom values.
  • Radio-button style list: Useful for a small set of choices.

The available control presentations depend on the parameter's data type and allowable-values configuration.

11. Practical Example: Create a Sales Target Parameter

Objective: Allow users to set a sales target and classify categories as meeting or missing that target.

Step 1: Create the parameter

  • Name: Sales Target
  • Data type: Number (Whole)
  • Current value: 50000
  • Allowable values: All, or a suitable numeric range

Step 2: Create a calculated field

In the Data pane, select Create Calculated Field. Name it Sales Target Status and enter:

IF SUM([Sales]) >= [Sales Target] THEN "Target Met"
ELSE "Below Target"
END

Step 3: Build the worksheet

  1. Drag Category to Rows.
  2. Drag Sales to Columns or Text.
  3. Drag Sales Target Status to Color or Text.
  4. Show the Sales Target parameter control.

Step 4: Test the parameter

Change the target to different values and observe the status changes. Categories with total sales greater than or equal to the target return Target Met; the remaining categories return Below Target.

Learning outcome: You have created a parameter, configured its values, used it in a calculated field, and connected it to a visualization.

12. Practical Example: Create a Measure Selection Parameter

Objective: Allow dashboard users to switch between Sales and Profit.

Step 1: Create the parameter

  • Name: Select Measure
  • Data type: String
  • Allowable values: List
  • Values: Sales and Profit
  • Current value: Sales

Step 2: Create the calculated field

Name the calculated field Selected Measure.

CASE [Select Measure]
WHEN "Sales" THEN SUM([Sales])
WHEN "Profit" THEN SUM([Profit])
END

Step 3: Build the visualization

  1. Drag Category to Rows.
  2. Drag Selected Measure to Columns.
  3. Show the Select Measure parameter control.
  4. Switch between Sales and Profit and observe the view.

Important: Sales and Profit may have different magnitudes and business meanings. Make the selected measure clear in the title, labels, or other supporting text.

13. Practical Example: Configure a Top N Parameter

Objective: Let users select how many products should appear in a ranking.

Parameter configuration

  • Name: Top N Products
  • Data type: Number (Whole)
  • Minimum: 1
  • Maximum: 20
  • Step size: 1
  • Current value: 5

Apply the parameter to a Top filter

  1. Drag Product Name into the view.
  2. Open the Product Name filter settings.
  3. Open the Top tab.
  4. Configure the filter to display the top items by SUM(Sales).
  5. Select the Top N Products parameter where supported by the Top filter configuration.
  6. Show the parameter control.

When the user changes the parameter from 5 to 10, the worksheet can display the top 10 products rather than the top 5, provided the filter is configured correctly.

14. Using Parameters in Filters and Reference Lines

Parameters in filters

Parameters can control a Top N filter or be used in calculated fields that are placed on the Filters shelf. For example, a sales threshold parameter can determine which categories are included in a view.

Example calculated field:

SUM([Sales]) >= [Sales Target]

Place this Boolean calculation on Filters and keep True to show categories whose sales meet the target.

Parameters in reference lines

A parameter can define the position of a reference line, band, or box where supported. This is useful when viewers need to compare actual results with a changeable target.

For example, a sales chart can use a Sales Target parameter as the reference line value. Changing the parameter updates the target position, allowing viewers to explore different performance thresholds.

15. Editing and Deleting Parameters

Editing a parameter

  1. Locate the parameter in the Data pane.
  2. Right-click it and select Edit, or use the parameter control menu where supported.
  3. Change the relevant configuration, such as the name, data type, current value, allowable values, or display format.
  4. Click OK to apply the changes.
  5. Test calculations and views that use the parameter.

Use the parameter control to change its current value during analysis. Use the Edit Parameter dialog when you need to change its configuration.

Deleting a parameter

  1. Locate the parameter in the Data pane.
  2. Right-click the parameter.
  3. Select Delete and confirm if prompted.

Warning: Calculated fields or other workbook elements that depend on a deleted parameter may become invalid. Check dependencies before deleting a parameter from an established workbook.

16. Static and Dynamic Parameter Values

Feature Static Configuration Dynamic Configuration
Current value Uses a manually configured value until changed. Can be updated from a supported field or calculation when the workbook opens or the data source is refreshed.
List of values Uses a manually maintained list. Can refresh values from a field when configured to do so.
Maintenance May require manual updates when values change. Can reduce manual maintenance for supported data-driven parameter values.
Example A fixed list of three reporting regions. A region list refreshed from the data source.

Dynamic parameter behavior depends on its configuration and the data source. For example, a dynamic current value must resolve to a compatible single value. If the source does not return a valid value, the expected update may not occur.

17. Parameter Actions

Parameter actions allow a user interaction in a visualization to update a parameter. Instead of changing a control manually, users may click or select a mark and cause the parameter to receive a value from the selected mark.

Example

A dashboard displays sales by region. When a user selects a region, a parameter action can update a parameter with that region's value. A second worksheet can then use the parameter to display a related analysis.

General configuration steps

  1. Create the target parameter.
  2. Create the source worksheet containing the marks users will select.
  3. Open the dashboard's Actions settings.
  4. Add a parameter action.
  5. Select the source worksheet and triggering interaction.
  6. Select the target parameter and the source field whose value should be passed to it.
  7. Configure the clearing behavior and test the action.

Make sure the source field's values are compatible with the target parameter's data type and allowable values.

18. Common Errors and Troubleshooting

Problem Likely Cause Solution
Parameter changes do not update the chart. The parameter is not used by the view. Reference it in a calculation, filter, reference line, or supported action.
Expected choices are missing. The list is incomplete or its values are not refreshed. Review the List configuration and refresh behavior.
A range value cannot be selected. The value is outside the configured range or does not follow the step interval. Check the minimum, maximum, and step size.
A calculation returns Null. The selected parameter value does not match the calculation conditions, or no CASE branch matches. Check spelling, permitted values, and calculation logic.
Parameter action does not work. The source field, target parameter, or action settings may be incompatible. Check the source field, target parameter, and clearing behavior.
Dynamic value does not refresh. The data source or configured field does not return a valid compatible value. Check the source, connection, calculation, and refresh behavior.
Dependent calculations become invalid. A referenced parameter was deleted or renamed in a way that breaks dependencies. Review and repair the dependent calculations.
Percentage results are incorrect. The parameter's stored value does not match the formula's expected units. Confirm whether the input should be a fraction such as 0.15 or a percentage such as 15.

19. Best Practices for Creating and Configuring Parameters

  • Use descriptive names that explain the parameter's purpose.
  • Select a data type that matches the intended calculation.
  • Choose a sensible current value so the workbook opens in a useful state.
  • Use List when users should choose only from approved options.
  • Use Range when numeric or date boundaries should be enforced and the data type supports it.
  • Use All only when unrestricted input is appropriate for the use case.
  • Label parameter controls clearly and explain their effect on the visualization.
  • Keep the parameter's displayed format and underlying calculation units consistent.
  • Test the minimum, maximum, default, and typical values.
  • Check dependent calculations before editing or deleting parameters.
  • Keep dashboards simple by avoiding unnecessary parameter controls.
  • Test the complete workbook after changing parameter configuration.

20. Practice Exercises with Answers

Exercise 1: Create a Sales Target Parameter

Task: Create a numeric parameter called Sales Target with an initial value of 50,000. Use it to identify categories meeting their sales target.

Answer:

IF SUM([Sales]) >= [Sales Target] THEN "Target Met"
ELSE "Below Target"
END

Use the result in the worksheet and show the parameter control.

Exercise 2: Create a Measure Selector

Task: Create a string parameter that lets users choose Sales or Profit.

Answer:

CASE [Select Measure]
WHEN "Sales" THEN SUM([Sales])
WHEN "Profit" THEN SUM([Profit])
END

Configure the parameter as a List containing Sales and Profit, then use the calculated field in the chart.

Exercise 3: Configure a Discount Parameter

Task: Create a decimal parameter called Discount Rate with a value of 0.15 and calculate the discounted sales amount.

Answer:

[Sales] * (1 - [Discount Rate])

If the parameter stores 0.15, the formula calculates 85% of the original sales amount.

Exercise 4: Configure a Top N Parameter

Task: Allow users to display between 1 and 20 top-selling products.

Answer: Create a Number (Whole) parameter with minimum 1, maximum 20, step size 1, and current value 5. Connect it to the Top filter for Product Name using SUM(Sales).

Exercise 5: Configure a List Parameter

Task: Create a parameter that lets users select East, West, Central, or South.

Answer: Set the data type to String, choose List, add the four region values, select a current value, and show the control. To make the selection affect the analysis, use the parameter in a calculation, supported filter configuration, or parameter action.


21. Tableau Interview Questions and Answers

Q1. What is a Tableau parameter?

Answer: A parameter is a workbook variable that stores one value of a specified data type and can be used by calculations, filters, reference lines, and other supported features.

Q2. How do you create a parameter in Tableau?

Answer: Open the Data pane menu, select Create Parameter, configure its name, data type, current value, allowable values, and display format where available, and click OK.

Q3. What are the allowable-values options?

Answer: Common options are All, List, and Range. All permits broad value entry, List defines specific choices, and Range restricts values to configured boundaries for supported types.

Q4. What is the difference between current value and allowable values?

Answer: The current value is the value currently stored by the parameter. Allowable values define the values the user is permitted to enter or select.

Q5. Can a parameter store multiple selected values simultaneously?

Answer: A standard Tableau parameter stores a single value at a time. A List configuration provides multiple possible choices, but the parameter itself does not store all selected list values as a multi-select set.

Q6. What is a parameter control?

Answer: A parameter control is the user interface used to change a parameter's value.

Q7. What is the difference between editing a parameter and changing its value?

Answer: Changing the value modifies the current selection. Editing a parameter changes its configuration, such as its name, data type, allowable values, or range.

Q8. What is a dynamic parameter?

Answer: A dynamic parameter can be configured to update its current value or allowable values from supported data-driven sources when the workbook opens or the data source is refreshed.

Q9. How can parameters be used in dashboards?

Answer: They can drive calculations, support Top N filters, control reference lines, switch measures, and receive values from parameter actions.

Q10. Why should you configure allowable values carefully?

Answer: Appropriate allowable values help prevent invalid inputs, simplify controls, and keep parameter-driven calculations meaningful.

22. Quick Revision Checklist

  • Understand the purpose of parameters.
  • Know how to open the Create Parameter dialog.
  • Choose an appropriate data type.
  • Configure the current value and opening behavior.
  • Understand All, List, and Range.
  • Choose a suitable display format and parameter control.
  • Connect the parameter to calculations or supported features.
  • Practice target, measure-selector, discount, and Top N examples.
  • Understand dynamic values and parameter actions.
  • Test and troubleshoot the completed workbook.

23. Conclusion

Creating and configuring parameters in Tableau allows you to build flexible, interactive analytical experiences. By selecting the right data type, current value, allowable values, and control format, you can make reports easier to explore and adapt to different business questions.

Remember that a parameter must be connected to a calculation, filter, reference line, action, or another supported feature before changing its value affects the analysis. Practice the examples in a Tableau workbook and test each parameter with different values to understand how it behaves.

Explore Tableau training: JustAcademy Tableau Training

Register for a course demo: Register for a Tableau Course Demo

24. Official Tableau References

whatsapp